package edu.spex.yjl.week07;

public class Chinese extends Human {
    // TODO 给language赋初值“普通话”
    private String language="普通话";    // 语言

    // TODO 默认构造方法，方法里实现输出打印“我是中国人，我很自豪。”
            public Chinese(){
                System.out.println("我是中国人，我很自豪");
            }
    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化
            public  Chinese(String area,String mainFood,String skinColor,String language ){

               // super(area,mainFood,skinColor,language);
                this.language=language;
            }

    // TODO language的getter和setter

    @Override
    public void setArea(String area) {
        super.setArea(area);
    }
    @Override
    public String getArea() {
        return super.getArea();
    }

    @Override
    public String getLanguage() {
        return language;
    }

    @Override
    public void setLanguage(String language) {
        this.language = language;
    }

    @Override
    public String getMainFood() {
        return super.getMainFood();
    }

    @Override
    public void setMainFood(String mainFood) {
        super.setMainFood(mainFood);
    }

    @Override
    public String getSkinColor() {
        return super.getSkinColor();
    }

    @Override
    public void setSkinColor(String skinColor) {
        super.setSkinColor(skinColor);
    }


    public void printThisLanguage(){

        System.out.println(this.language);
        super.printThisLanguage();

    }
    void speak(){
        System.out.println("我说"+this.language );
        super.speak();
    }
}
